package com.itheima.daimakuai;

public class Demo01 {
    public static void main(String[] args) {
      /*  Student student = new Student();
        Student cai = new Student("小蔡");*/
        Student.show();
    }


}
class Student{
    private String name;
    public void sing(){
        int j=20;
        for (int i = 0; i < 3; i++) {
            System.out.println(i);
        }//提前结束 某个变量的声明周期
       // System.out.println(i);
        System.out.println(j);

    }
    public static void show(){
      //  System.out.println(j);
    }

    static {
        System.out.println("准备工作");
    }
    public Student(){
        //System.out.println("准备工作");
        System.out.println("无参构造");
    }
    public Student(String name){
        this.name=name;

        System.out.println("带参构造");
    }

}